package cn.wolfcode.luowowo.ticket.mapper;

import cn.wolfcode.luowowo.ticket.domain.TicketSale;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TicketSaleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TicketSale record);

    TicketSale selectByPrimaryKey(Long id);

    List<TicketSale> selectAll();

    int updateByPrimaryKey(TicketSale record);

    List<TicketSale> selectSaleByTicketId(Long tid);

    TicketSale selectSaleByIdAndTicketId(@Param("id") Long id, @Param("tid") Long tid);
}